package com.xiaogao.oss.service;

import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 小高
 * @createtime 2021-06-05-23:14
 * @description
 */
public interface OssService {

    /**
     * 文件上传到阿里云
     * @param file
     * @return
     */
    String uploadFile(MultipartFile file);

    /**
     * 删除封面
     * @param coverName
     */
    void removeFile(String coverName);
}
